<link rel="stylesheet" href="../component/bootstrap/css/bootstrap-tagsinput.css">

<div class="sign-rule-content">
    <blockquote class="layui-elem-quote">
        <button class="layui-btn create-item"><i class="layui-icon">&#xe654;</i>创建签到规则</button>
    </blockquote>
    <div class="sign-rule-table"></div>
    <script type="text/html" id="signRuleForm">
        <form class="layui-form padding-5 layui-dialog">
            <div class="layui-form-item">
                <label class="layui-form-label required">连续签到天数：</label>
                <div class="layui-input-block">
                    <input type="number" name="signDays" required lay-verify="required|positiveInteger"
                           placeholder="连续签到天数"
                           autocomplete="off" value="{{d.data.signDays||''}}"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label required">奖励糖果数：</label>
                <div class="layui-input-block">
                    <input type="number" name="rewardCoins" required lay-verify="required|positiveInteger"
                           placeholder="奖励糖果数"
                           autocomplete="off" value="{{d.data.rewardCoins||''}}"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn save" lay-submit lay-filter="{{d.model}}">保存</button>
                    <button type="reset" class="layui-btn">重置</button>
                </div>
            </div>
            <input type="hidden" name="id" value="{{d.data.id||''}}"/>
        </form>
    </script>
</div>

<script src="../component/bootstrap/js/bootstrap-tagsinput.min.js"></script>
<script type="text/javascript" src="../js/sign-rule.js"></script>